<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

  <xsl:output encoding="UTF-8" indent="yes" method="xml" />

  <xsl:template match="/">
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" 
        xmlns:georss="http://www.georss.org/georss">
      <channel>
	<title><xsl:value-of select="/rss/channel/title" /></title>
	<link><xsl:value-of select="/rss/channel/link" /></link>
	<description><xsl:value-of select="/rss/channel/description" /></description>
	<language><xsl:value-of select="/rss/channel/language" /></language>
	<ttl><xsl:value-of select="/rss/channel/ttl" /></ttl>

	<xsl:for-each select="//item">
	  <xsl:sort select="pubDate" data-type="text" order="descending" />
	  <item>
	    <title><xsl:value-of select="title" /></title>
	    <description><xsl:value-of select="description" /></description>
	    <link><xsl:value-of select="link" /></link>
	    <pubDate><xsl:value-of select="pubDate" /></pubDate>      
	  </item>
	</xsl:for-each>
      </channel>
    </rss>
  </xsl:template>
</xsl:stylesheet>
